package com.itqf.edu.controller;

import com.itqf.edu.service.StudentService;
import com.itqf.edu.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: edu
 *
 * @author: 王洁琳
 * time: 2021/9/28 21:55
 * description:
 */
@RestController
@CrossOrigin("*")
@RequestMapping("student")
public class StudentController {
    @Autowired
    private StudentService studentService;

    /**
     * 学生信息展示
     * @return
     */
    @GetMapping("list")
    public Object list(){
        R r = studentService.list();
        return r;
    }
}
